
{template "content","header"}

<style>
  .pagenum{ padding-top:30px; padding-bottom:80px;}
.pagenum ul li{ float:left; margin-right:10px;}
.pagenum ul li a{ display:block; height:28px; line-height:29px; padding:0 10px; border:1px solid #e5e5e5; color:#8d8d8d;}
.pagenum ul li a:hover{background:#eee;}
.pagenum ul li.active{ background:#8e0f15; height:28px; line-height:29px; padding:0 10px; border:1px solid #8e0f15; color:#fff;}
</style>

<section>
   <div id="list_index" class="w1000 mc">
       <div class="mbx">
          <a href="{siteurl($siteid)}">首页</a><span></span>{catpos($catid)}
       </div>
        {loop subcat($catid) $v}
        {if $v[catname]==正文}
       <div class="list_l fl index_border">
           <div class="top_bg"></div>
             <ul class="mc">
                 {pc:content action="lists" catid="$v[catid]" num="25" order="id desc" page="$page"}
                {loop $data $v}
                  <li><a href="{$v[url]}">{$v[title]}</a><span class="rt">[{date('Y-m-d',$v[inputtime])}]</span></li>
                {/loop}
               {/pc}
             </ul>
       </div>
        {/if}
  {/loop}

       <div class="list_r fr">
          <div class="list_r_1 index_border">
               <div class="top_bg"></div>
               <div class="sidr_title mc">
                  <h2>通知公告</h2>
               </div>
               {pc:content action="lists" catid="104" order="id DESC" num="25"cache="3600"}
           <ul class="mc">
           {loop $data $r}
              <li><a href="{$r[url]}">{$r[title]}</a></li>
              {/loop}
           </ul>
           {/pc}
           </div>

           <div class="list_r_2 index_border">
               <div class="top_bg"></div>
               <div class="sidr_title mc">
                  <h2>热门排行</h2>
               </div>
               <ul class="mc">
                  {pc:content  action="hits"  num="10" order="views DESC" cache="3600"}
        {loop $data $r}
          <li><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title], 28, '')}</a></li>
        {/loop}
      {/pc}
               </ul>
           </div>

       </div>
       <div class="clear"></div>
       <!--页码-->
       <div class="pagenum">
       <ul>
          <?php
            $str = $pages;
            $str = preg_replace("/(<a.*?>.*?<\/a>)??/", '', $str, 2);
            $str = str_replace('<a','<li><a',$str);
            $str = str_replace("</a>","</a></li>",$str);
            $str = str_replace("<span>",'<li class="active">',$str);
            $str = str_replace("</span>",'</li>',$str);
            $str = str_replace("..",'<li><a>..</a></li>',$str);
          ?>

          {$str}
        </ul>
       </div>
   </div>
</section>

<footer>
<div id="footer" class="w100p">
   <div class="footer w1000 mc">
       <p>SCAU Copyright ©  2012 国际教育学院.All rights reserved. </p>
       <p>地址:广东省天河区五山路486号 邮编:510642 </p>
       <p><span>Tel:+8620 85283482</span> <span>+8620 38675621</span> <span>Fax:+8620 85283114</span> <span>E-Mail:cie@scau.edu.cn</span></p>
       <a href="#">后台管理</a>
   </div>
</div>
</footer>

</body>
</html>
